package com.lj.mcore.service;

import com.lj.mcore.dao.base.BaseAppDAO;
import com.lj.mcore.entity.Goods;
import com.lj.mcore.entity.GoodsClass;
import com.lj.mcore.utils.PageBean;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

@Service
@Transactional
@Repository
public class GoodsClassService implements IGoodsClassService{

    @Resource(name="goodsClassDao")
    private BaseAppDAO<GoodsClass> goodsClassDao;

    @Override
    public boolean save(GoodsClass paramUser) {
        return goodsClassDao.save(paramUser);
    }

    @Override
    public boolean delete(Long paramLong) {
        return false;
    }

    @Override
    public boolean update(GoodsClass paramUser) {
        return false;
    }

    @Override
    public GoodsClass getObjById(Long paramLong) {
        return goodsClassDao.findById(paramLong);
    }

    @Override
    public GoodsClass getSingleResult(Map<String, Object> map) {
        return null;
    }

    @Override
    public List<GoodsClass> query(String paramString, Map paramMap, int paramInt1, int paramInt2) {
        return goodsClassDao.query(paramString, paramMap, paramInt1, paramInt2);
    }

    @Override
    public PageBean getList(int pageSize, int page, Map<String, String> query) {
        return null;
    }
}
